finding perimeter of a composite figure